package com.example.greenshuttle.data;

import com.amap.api.maps2d.model.LatLng;
import com.amap.api.services.core.LatLonPoint;

public class MarkerMsg {

	/**
	 * 经度
	 */
	private Double lat;

	/**
	 * 维度
	 */
	private Double lng;

	/**
	 * 经纬度
	 */
	private LatLng position;
	/**
	 * infowindow的标题
	 */
	private String title;

	/**
	 * infowindow的说明
	 */
	private String snippet;

	public MarkerMsg(Double lat, Double lng, String title, String snippet) {
		this.lat = lat;
		this.lng = lng;
		this.position = new LatLng(this.lat, this.lng);
		this.title = title;
		this.snippet = snippet;

	}

	public MarkerMsg(LatLonPoint p, String title, String snippet) {
		this.lat = p.getLatitude();
		;
		this.lng = p.getLongitude();
		this.position = new LatLng(this.lat, this.lng);
		this.title = title;
		this.snippet = snippet;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public LatLng getPosition() {
		return position;
	}

	public void setPosition(LatLng position) {
		this.position = position;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSnippet() {
		return snippet;
	}

	public void setSnippet(String snippet) {
		this.snippet = snippet;
	}

}
